<?php

namespace App\Services\Admin\Sponsor;

use Exception;

class ExpressService extends BaseSponsorService
{

    /**
     * 列表
     *
     * @param array $params
     * @return array
     * @throws Exception
     */
    public function list(array $params): array
    {
        // 查询快递公司列表
        $expressCompanyList = $this->getExpressCompanyModel()->list([
            'id', 'name', 'code'
        ]);
        return [
            'list' => $expressCompanyList
        ];
    }

}
